/*
*********************************************************************************************************
*                                         BOARD SUPPORT PACKAGE
*
*                            (c) Copyright 2014; Micrium, Inc.; Weston, FL
*
*               All rights reserved. Protected by international copyright laws.
*
*               BSP is provided in source form to registered licensees ONLY.  It is
*               illegal to distribute this source code to any third party unless you receive
*               written permission by an authorized Micrium representative.  Knowledge of
*               the source code may NOT be used to develop a similar product.
*
*               Please help us continue to provide the Embedded community with the finest
*               software available.  Your honesty is greatly appreciated.
*
*               You can contact us at www.micrium.com.
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*
*                                        BOARD SUPPORT PACKAGE
*
*                                  Texas Instruments MSP-EXP430F5438
*                                         Experimenter Board
*
* Filename      : bsp.h
* Version       : V1.00
* Programmer(s) : HS
*********************************************************************************************************
*/

#ifndef  __BSP_H__
#define  __BSP_H__

/*
*********************************************************************************************************
*                                               CONSTANTS
*********************************************************************************************************
*/

#define  BSP_CPU_CLK_FREQ       25000000u                       /* Frequency in Hz                                      */

/*
*********************************************************************************************************
*                                            GLOBAL VARIABLES
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*                                          FUNCTION PROTOTYPES
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*                                             BSP SERVICES
*********************************************************************************************************
*/


void        BSP_Init       (void);
void        BSP_IntDisAll  (void);
void        BSP_IntEnAll   (void);
void        BSP_Dly        (CPU_INT32U   us);
void        BSP_FormatDec  (CPU_INT08U  *s, CPU_INT32U  value, CPU_INT08U  digits);

/*
*********************************************************************************************************
*                                             LED SERVICES
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*                                             LCD SERVICES
*********************************************************************************************************
*/

void        LCD_Clear        (void);
void        LCD_Print        (CPU_CHAR    *txt);
void        LCD_SetLine      (CPU_INT08U   line);
void        LCD_PrintLineCol (CPU_CHAR txt[], CPU_INT08U x, CPU_INT08U y);

/*
*********************************************************************************************************
*                                            TIMER SERVICES
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*                                             PUSH BUTTONS
*********************************************************************************************************
*/

CPU_INT08U  PB_Rd            (void);

/*
*********************************************************************************************************
*                                                 ADC
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*                                             SERIAL PORT
*********************************************************************************************************
*/

#endif
